﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ChartSharp
{
    public class TextEncoder : BaseEncoder<float>
    {
        protected internal override string Prefix
        {
            get { return "t"; }
        }

        protected internal override string DataSetsSeparator
        {
            get { return "|"; }
        }

        protected internal override string NumbersSeparator
        {
            get { return ","; }
        }

        protected override string MissingValue
        {
            get { return "-1"; }
        }

        protected override float MinValidValue
        {
            get { return 0F; }
        }

        public override float MaxValidValue
        {
            get { return 100F; }
        }

        protected override string EncodeValue(float value)
        {
            return value.ToString("0.0");
        }
    }
}
